﻿using System.IO;
using Comunication;

namespace ClientDomain.Commnads
{
    class ClientSendFileInformation : Command
    {
        public ClientSendFileInformation(string fileName)
        {
            Header = "REQ";
            Cmd = Commands.UPLOAD_CLIENT_SERVER_FILE_INFORMATION;
            Data = "MD5:" + Utiles.Utilidades.GetMd5HashFromFile(fileName) + ";" + "FILENAME:" + Path.GetFileName(fileName);
        }
    }
}
